package com.mhc.suzuki.manager;

import com.mhc.suzuki.bo.AnnexListBO;
import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.AnnexListDO;
import com.mhc.suzuki.dal.query.AnnexListQuery;

import java.util.List;
import java.util.Map;


/**
 * Manager for AnnexList.
 */
public interface AnnexListManager {
    /**
     * query count by query condition.
     */
    int countByQuery(AnnexListQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(AnnexListQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(AnnexListDO record);

    /**
     * insert selective.
     */
    long insertSelective(AnnexListDO record);

    /**
     * select by query condition.
     */
    List<AnnexListDO> selectByQuery(AnnexListQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<AnnexListDO> selectByQueryWithPage(AnnexListQuery query);

    /**
     * select by primary key.
     */
    AnnexListDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( AnnexListDO record,  AnnexListQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(AnnexListDO record, AnnexListQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(AnnexListDO record);

    /**
     * 根据附件业务类型获取列表
     */
    List<AnnexListBO> selectByAnnexList(Map<String, ?> paramMap);
}